package ch06.shangJi.sj1;

/**
 * 对话
 */
public class Dialogue {
    //定义路飞对话属性
    private String name;
    //定义诸葛亮对话属性
    private String value;

    public Dialogue() {
    }

    public Dialogue(String name) {
        this.name = name;
    }

    public Dialogue(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
    void show(){
        System.out.println(name+":"+value);
    }
}
